﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestStudentList.aspx.cs" Inherits="WeFrame.Web.Admin.Test.TestStudentList" %>
<%@ Import namespace="WeFrame.Core.Common" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <title>测试学生表</title>
    <link href="../Library/artdialog/ui-dialog.css" rel="stylesheet" type="text/css" />
    <link href="../Theme/default/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../Library/jquery/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" src="../Library/artdialog/dialog-plus-min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../JavaScript/laymain.js"></script>
    <script type="text/javascript" charset="utf-8" src="../JavaScript/common.js"></script>
</head>

<body class="mainbody">
<form id="form1" runat="server">
<!--导航栏-->
<div class="location">
  <a href="javascript:history.back(-1);" class="back"><i></i><span>返回上一页</span></a>
  <a href="../center.aspx" class="home"><i></i><span>首页</span></a>
  <i class="arrow"></i>
  <span>测试学生表列表</span>
</div>
<!--/导航栏-->

<!--工具栏-->
<div id="floatHead" class="toolbar-wrap">
  <div class="toolbar">
    <div class="box-wrap">
      <a class="menu-btn"></a>
      <div class="l-list">
        <ul class="icon-list">
          <li><a class="add" href="TestStudentEdit.aspx?action=<%=WeFrameEnums.ActionEnum.Add %>"><i></i><span>新增</span></a></li>
          <li><a class="all" href="javascript:;" onclick="checkAll(this);"><i></i><span>全选</span></a></li>
          <li><asp:LinkButton ID="LinkButtonDelete" runat="server" CssClass="del" 
                  OnClientClick="return ExePostBack('LinkButtonDelete');" 
                  onclick="LinkButtonDelete_Click"><i></i><span>删除</span></asp:LinkButton></li>
        </ul>
      </div>
      <div class="r-list">
        <asp:TextBox ID="TextBoxKeyword" runat="server" CssClass="keyword" />
        <asp:LinkButton ID="LinkButtonSearch" runat="server" CssClass="btn-search" onclick="LinkButtonSearch_Click">查询</asp:LinkButton>
      </div>
    </div>
  </div>
</div>
<!--/工具栏-->

<!--列表-->
<div class="table-container">
  <asp:Repeater ID="RepeaterList" runat="server">
  <HeaderTemplate>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
    <tr>
      <th width="8%">选择</th>
      <th align="left">编号</th>
      <th align="left">名称</th>
      <th align="left">年龄</th>
      <th align="left">创建人</th>
      <th align="left">创建时间</th>
      <th align="left">修改人</th>
      <th align="left">修改时间</th>
      <th align="left">备注</th>
      <th>操作</th>
    </tr>
  </HeaderTemplate>
  <ItemTemplate>
    <tr>
      <td align="center">
        <asp:CheckBox ID="CheckBoxId" CssClass="checkall" runat="server" style="vertical-align:middle;" />
        <asp:HiddenField ID="HiddenFieldId" Value='<%#Eval("Id")%>' runat="server" />
      </td>
      <td><%# Eval("Id") %></td>
      <td><%# Eval("Name") %></td>
      <td><%# Eval("Age") %></td>
      <td><%# Eval("CreateBy") %></td>
      <td><%# Eval("CreateTime") %></td>
      <td><%# Eval("ModifyBy") %></td>
      <td><%# Eval("ModifyTime") %></td>
      <td><%# Eval("Remark") %></td>
      <td align="center"><a href="TestStudentEdit.aspx?action=<%#WeFrameEnums.ActionEnum.Edit %>&id=<%#Eval("Id")%>">修改</a></td>
    </tr>
  </ItemTemplate>
  <FooterTemplate>
    <%#RepeaterList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"8\">暂无记录</td></tr>" : ""%>
  </table>
  </FooterTemplate>
  </asp:Repeater>
</div>
<!--/列表-->
<!--内容底部-->
<div class="line20"></div>
<div class="pagelist">
  <div class="l-btns">
    <span>显示</span><asp:TextBox ID="TextBoxPageSize" runat="server" 
          CssClass="pagenum" onkeydown="return checkNumber(event);"
                OnTextChanged="TextBoxPageSize_TextChanged" AutoPostBack="True" 
          TextMode="Number">10</asp:TextBox><span>条/页</span>
  </div>
  <div>
      <webdiyer:AspNetPager ID="AspNetPager" runat="server"  
        onpagechanged="AspNetPager_PageChanged" CssClass="anpager" 
        CurrentPageButtonClass="cpb" LayoutType="Ul" PagingButtonSpacing="0px" 
        FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页"></webdiyer:AspNetPager>
  </div>
</div>

<!--/内容底部-->
</form>
</body>
</html>

